import { Loading } from "element-ui";
import Vue from "vue";
Vue.prototype.Loading = "";
// 显示loading
Vue.prototype.showLoading = function() {
  Vue.prototype.Loading = Loading.service({
    lock: true,
    text: "Loading",
    spinner: "el-icon-loading",
    background: "rgba(0, 0, 0, 0)",
    customClass: "customClass"
  });
};
// 关闭 loading
Vue.prototype.closeLoading = function() {
  Vue.prototype.Loading.close();
};
